# -*- coding: utf-8 -*-
# @Time : 2022/4/9 21:04
# @Author : Liuqing
# @File : 22_找出出现次数最多的元素.py
# @Software : PyCharm
def most_frequent(lst):
    return max(set(lst), key=lst.count)


if __name__ == '__main__':
    lst = [1, 2, 1, 2, 3, 2, 1, 4, 2]
    print(most_frequent(lst))